import { request } from 'umi';
const PROJECT_NAME = process.env.PROJECT_NAME;

/**
 * 获取oss参数
 * @param param
 */
export async function getTemOssAuth(data: any) {
    return request(`/${PROJECT_NAME}/sys/sysFile/getTemOssAuth`, { method: 'POST', data });
}

/**
 * 上传本地文件到oss,存入sys_file表
 */
export async function saveOssFile2sysfile(data: any) {
    return request(`/${PROJECT_NAME}/sys/sysFile/saveOssFile`, { method: 'POST', data });
}
